1. /* sxfbsin.cpp by K.Tsuru */
  2. // function ID 5203 BRADIX(reference)
  3. /**************************
  4. SDecimal class
  5. sin x by BRADIX = 32768
  6. ***************************/
  7. #ifndef SN_H
  8. #include "sn.h"
  9. #endif
  10. SDecimal Bsin(const SDouble& x){
  11. SDouble y;
  12. SDecimal r;
  13. int func = SIN_CALC;
  14. int s = GetTriCalcMethod(x, y, &func);
  15. if(s == 0){
  16. r = y.Sign(5203); // y = -1, 0, 1
  17. x.upToTerm = 1;
  18. } else if(func == COS_CALC) r = BcosSeries(y);
  19. else r = BsinSeries(y);
  20. if(s < 0) r = -r;
  21. return r;
  22. }

sxfbsin.cpp : last modifiled at 2015/12/15 13:59:54(519 bytes)
created at 2015/12/22 16:09:56
The creation time of this html file is 2017/10/27 15:45:59 (Fri Oct 27 15:45:59 2017).